package com.bbseguros.pesquisador.middle;

import java.util.List;

import com.bbseguros.pesquisador.bean.DataBean;
import com.bbseguros.pesquisador.bean.RelatoriosBean;
import com.bbseguros.pesquisador.dao.RelatoriosDAO;

/**
 * @author smeagol
 *
 */
public class RelatoriosMiddle {
	
	/**
	 * @return
	 */
	public static List<DataBean> getListGrupo(){
		RelatoriosDAO dao = RelatoriosDAO.getInstance();
		return dao.selectAllGrupo();
	}
	
	/**
	 * @return
	 */
	public static List<DataBean> getListUser(){
		RelatoriosDAO dao = RelatoriosDAO.getInstance();
		return dao.selectAllUsers();
	}
	
	/**
	 * @return
	 */
	public static List<DataBean> getListPesq(){
		RelatoriosDAO dao = RelatoriosDAO.getInstance();
		return dao.selectAllPesq();
	}
	
	/**
	 * @return
	 */
	public static List<RelatoriosBean> searchGrupo(RelatoriosBean relatoriosBean){
		RelatoriosDAO dao = RelatoriosDAO.getInstance();
		return dao.selectGrupoByDate(relatoriosBean);
	}
	
	/**
	 * @return
	 */
	public static List<RelatoriosBean> searchUser(RelatoriosBean relatoriosBean){
		RelatoriosDAO dao = RelatoriosDAO.getInstance();
		return dao.selectUserByDate(relatoriosBean);
	}

}
